package dk.kapetanovic.jaft.action;


import java.io.IOException;
import java.io.Serializable;

import dk.kapetanovic.jaft.transaction.Transaction;

public interface Action extends Serializable {
	void prepare() throws IOException;
	void cleanup() throws IOException;
	Object execute() throws IOException;
	void undo() throws IOException;
	void close() throws IOException;
	Transaction getTransaction();
	void setTransaction(Transaction transaction);
}
